const api = {
  mock: {
    API: 'https://fat-admaster.hellobike.com/admaster',
    AD_MASTER: 'https://fat-admaster.hellobike.cn',
    CRM: 'https://fat-crm-api.hellobike.com/CRM',
    Venus_API: 'https://fat-marketing-venus.hellobike.com', // 活动
    CRM_HOST: 'fat-crm.hellobike.cn',
    UAP: 'https://pre-uap.hellobike.cn',
    AUDIT:
      'http://fat-common.hellobike.cn/#/platform/workflow/workspace/process',
    FLOW: 'http://fat-common.hellobike.cn/#/platform/workflow/workspace/review',
    AB_TEST:
      'https://fat-galileo-ab-server.hellobike.cn/api/quota/queryListNew', // 伽利略AB实现平台分析链接
    AB_ANALYZE: 'https://fat-ab.hellobike.cn/experiment/detail/expIframe',
    WORKFLOW:
      'https://fat-workflow-web.hellobike.com/process/getProcessUnFinishedTask',
    DATA_BOX: 'http://databox.hellobike.cn',
    EHR: 'http://fat-pivotopenapi-inner.hellobike.cn',
    MOON: 'https://fat-marketing-moon.hellobike.cn',
    KONGMING: 'https://fat-growth.hellobike.cn',
    POLARIS: 'https://fat-polaris.hellobike.com',
  },
  dev: {
    API: 'https://fat-admaster.hellobike.com/admaster',
    CRM: 'https://fat-crm-api.hellobike.com/CRM',
    AD_MASTER: 'https://fat-admaster.hellobike.cn',
    Venus_API: 'https://fat-marketing-venus.hellobike.com', // 活动
    CRM_HOST: 'fat-crm.hellobike.cn',
    UAP: 'https://pre-uap.hellobike.cn',
    AUDIT:
      'http://fat-common.hellobike.cn/#/platform/workflow/workspace/process',
    FLOW: 'http://fat-common.hellobike.cn/#/platform/workflow/workspace/review',
    AB_TEST:
      'https://fat-galileo-ab-server.hellobike.cn/api/quota/queryListNew', // 伽利略AB实现平台分析链接
    AB_ANALYZE: 'https://fat-ab.hellobike.cn/experiment/detail/expIframe',
    WORKFLOW:
      'https://fat-workflow-web.hellobike.com/process/getProcessUnFinishedTask',
    DATA_BOX: 'http://databox.hellobike.cn',
    EHR: 'http://fat-pivotopenapi-inner.hellobike.cn',
    MOON: 'https://fat-marketing-moon.hellobike.cn',
    KONGMING: 'https://fat-growth.hellobike.cn',
    POLARIS: 'https://fat-polaris.hellobike.com',
  },
  fat: {
    API: 'https://fat-admaster.hellobike.com/admaster',
    CRM: 'https://fat-crm-api.hellobike.com/CRM',
    AD_MASTER: 'https://fat-admaster.hellobike.cn',
    UAP: 'https://fat-uap.hellobike.cn',
    Venus_API: 'https://fat-marketing-venus.hellobike.com', // 活动
    CRM_HOST: 'fat-crm.hellobike.cn',
    AUDIT:
      'http://fat-common.hellobike.cn/#/platform/workflow/workspace/process',
    FLOW: 'http://fat-common.hellobike.cn/#/platform/workflow/workspace/review',
    AB_TEST:
      'https://fat-galileo-ab-server.hellobike.cn/api/quota/queryListNew', // 伽利略AB实现平台分析链接
    AB_ANALYZE: 'https://fat-ab.hellobike.cn/experiment/detail/expIframe',
    WORKFLOW:
      'https://fat-workflow-web.hellobike.com/process/getProcessUnFinishedTask',
    DATA_BOX: 'http://fat-databox.hellobike.cn',
    EHR: 'http://fat-pivotopenapi-inner.hellobike.cn',
    MOON: 'https://fat-marketing-moon.hellobike.cn',
    KONGMING: 'https://fat-growth.hellobike.cn',
    POLARIS: 'https://fat-polaris.hellobike.com',
  },
  uat: {
    API: 'https://uat-admaster.hellobike.com/admaster',
    CRM: 'https://uat-crm-api.hellobike.com/CRM',
    AD_MASTER: 'https://uat-admaster.hellobike.cn',
    UAP: 'https://uat-uap.hellobike.cn',
    DEMO_API: 'http://easymock.hellobike.cn/mock/5cd4fb82a20c520018a06a4c',
    Venus_API: 'https://uat-marketing-venus.hellobike.com', // 活动
    CRM_HOST: 'uat-crm.hellobike.cn',
    AUDIT:
      'http://uat-common.hellobike.cn/#/platform/workflow/workspace/process',
    FLOW: 'http://uat-common.hellobike.cn/#/platform/workflow/workspace/review',
    AB_TEST:
      'https://uat-galileo-ab-server.hellobike.cn/api/quota/queryListNew', // 伽利略AB实现平台分析链接
    AB_ANALYZE: 'https://uat-ab.hellobike.cn/experiment/detail/expIframe',
    WORKFLOW:
      'https://uat-workflow-web.hellobike.com/process/getProcessUnFinishedTask',
    DATA_BOX: 'http://uat-databox.hellobike.cn',
    EHR: 'http://uat-pivotopenapi-inner.hellobike.cn',
    MOON: 'https://uat-marketing-moon.hellobike.cn',
    KONGMING: 'https://uat-growth.hellobike.cn',
    POLARIS: 'https://uat-polaris.hellobike.com',
  },
  pt: {
    API: 'https://pt-admaster.hellobike.com/admaster',
    CRM: 'https://pt-crm-api.hellobike.com/CRM',
    AD_MASTER: 'https://pt-admaster.hellobike.cn',
    UAP: 'https://pt-uap.hellobike.cn',
    DEMO_API: 'http://easymock.hellobike.cn/mock/5cd4fb82a20c520018a06a4c',
    Venus_API: 'https://pt-marketing-venus.hellobike.com', // 活动
    CRM_HOST: 'pt-crm.hellobike.cn',
    AUDIT:
      'http://pt-common.hellobike.cn/#/platform/workflow/workspace/process',
    FLOW: 'http://pt-common.hellobike.cn/#/platform/workflow/workspace/review',
    AB_TEST: 'https://pt-galileo-ab-server.hellobike.cn/api/quota/queryListNew', // 伽利略AB实现平台分析链接
    AB_ANALYZE: 'https://pt-ab.hellobike.cn/experiment/detail/expIframe',
    WORKFLOW:
      'https://pt-workflow-web.hellobike.com/process/getProcessUnFinishedTask',
    DATA_BOX: 'http://pt-databox.hellobike.cn',
    EHR: 'http://pt-pivotopenapi-inner.hellobike.cn',
    MOON: 'https://pt-marketing-moon.hellobike.cn',
    KONGMING: 'https://pt-growth.hellobike.cn',
    POLARIS: 'https://pt-polaris.hellobike.com',
  },
  pre: {
    API: 'https://pre-admaster.hellobike.com/admaster',
    CRM: 'https://pre-crm-api.hellobike.com/CRM',
    AD_MASTER: 'https://pre-admaster.hellobike.cn',
    UAP: 'https://pre-uap.hellobike.cn',
    Venus_API: 'https://pre-marketing-venus.hellobike.com', // 活动
    CRM_HOST: 'pre-crm.hellobike.cn',
    AUDIT:
      'http://pre-common.hellobike.cn/#/platform/workflow/workspace/process',
    FLOW: 'http://pre-common.hellobike.cn/#/platform/workflow/workspace/review',
    AB_TEST:
      'https://pre-galileo-ab-server.hellobike.cn/api/quota/queryListNew', // 伽利略AB实现平台分析链接
    AB_ANALYZE: 'https://pre-ab.hellobike.cn/experiment/detail/expIframe',
    WORKFLOW:
      'https://pre-workflow-web.hellobike.com/process/getProcessUnFinishedTask',
    DATA_BOX: 'http://pre-databox.hellobike.cn',
    EHR: 'http://pre-pivotopenapi-inner.hellobike.cn',
    MOON: 'https://pre-marketing-moon.hellobike.cn',
    KONGMING: 'https://pre-growth.hellobike.cn',
    POLARIS: 'https://pre-polaris.hellobike.com',
  },
  pro: {
    API: 'https://admaster.hellobike.com/admaster',
    CRM: 'https://crm-api.hellobike.cn/CRM',
    UAP: 'https://uap.hellobike.cn',
    AD_MASTER: 'https://admaster.hellobike.cn',
    DEMO_API: 'http://easymock.hellobike.cn/mock/5cd4fb82a20c520018a06a4c',
    Venus_API: 'https://marketing-venus.hellobike.com', // 活动
    CRM_HOST: 'crm.hellobike.cn',
    AUDIT: 'http://common.hellobike.cn/#/platform/workflow/workspace/process',
    FLOW: 'http://common.hellobike.cn/#/platform/workflow/workspace/review',
    AB_TEST: 'https://galileo-ab-server.hellobike.cn/api/quota/queryListNew', // 伽利略AB实现平台分析链接
    AB_ANALYZE: 'https://ab.hellobike.cn/experiment/detail/expIframe',
    WORKFLOW:
      'https://workflow-web.hellobike.com/process/getProcessUnFinishedTask',
    DATA_BOX: 'https://databox.hellobike.cn',
    EHR: 'http://pivotopenapi-inner.hellobike.cn',
    MOON: 'https://marketing-moon.hellobike.cn',
    KONGMING: 'https://growth.hellobike.cn',
    POLARIS: 'https://polaris.hellobike.com',
  },
};
const REACT_APP_ENV = 'fat';
const config = {
  ...api[REACT_APP_ENV || 'dev'],
  appEnv: REACT_APP_ENV,
};

export default config;
